<template>
	<view>
		<view class="header-bg-view">
			<view class="flex-alignItems-center margin-top150">
				<image class="img-100" src="../../static/logo.png" mode="aspectFill"></image>
				<view class="margin-left20">
					<view class="fontSize-15 color-fff margin-bottom20">骑手名称</view>
					<view class="fontSize-13 color-fff">18888888888</view>
				</view>
			</view>
		</view>
		<view class="padding-30">
			<view class="bg-fff flex-flex-warp padding-20 border-radius20" style="margin-top: -80rpx;">
				<view class="flex-justAliCenter-column" style="width: 300rpx;">
					<view class="fontSize-20 margin-bottom10" style="color: #E93853;">25622.21</view>
					<view class="fontSize-15" style="color: #4D4D4D;">余额</view>
				</view>
				<view class="flex-justAliCenter-column" style="width: 300rpx;">
					<view class="fontSize-20 color-333 margin-bottom10">25622.21</view>
					<view class="fontSize-15" style="color: #4D4D4D;">总累计(单)</view>
				</view>
				<view class="flex-justAliCenter-column margin-top30" style="width: 300rpx;">
					<view class="fontSize-20 color-333 margin-bottom10">25622.21</view>
					<view class="fontSize-15"style="color: #4D4D4D;">今日累计(单)</view>
				</view>
				<view class="flex-justAliCenter-column margin-top30" style="width: 300rpx;">
					<view class="fontSize-20 color-333 margin-bottom10">25622.21</view>
					<view class="fontSize-15" style="color: #4D4D4D;">本月累计(单)</view>
				</view>
			</view>
			
			<view class="bg-fff flex-between padding-20 border-radius20 margin-30-0">
				<view class="fontSize-15 color-4D4D4D">接单状态</view>
				<u-switch v-model="value3" activeColor="#2A9C37"></u-switch>
			</view>
			<!-- 列表 -->
			<view class="bg-fff border-radius20 margin-bottom30" style="padding: 30rpx 30rpx 0 30rpx;">
				<view class="flex-between mine-list padding-bottom30 margin-bottom10" v-for="(item,index) in list" :key="index"
					@click="goToUrl(item.path)">
					<view class="flex-alignItems-center">
						<!-- <image class="img-44 margin-right10 img-crisp-edges" :src="item.image" mode=""></image> -->
						<view class="fontSize-15 color-000">{{item.name}}</view>
					</view>
					<u-icon name="arrow-right" color="#808080" size="16"></u-icon>
				</view>
			</view>
			<view class="flex-center">
				<view class="seting-view flex-center" @click="goOutLogin">
					退出账号
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value3:'',
				list: [{
						name: '账户明细',
						path: '/pages/mine/mine-list/my-recipe'
					},
					{
						name: '历史订单',
						path: '/pages/mine/mine-list/my-exercise-history'
					},
					{
						name: '设置',
						path: '/pages/mine/mine-list/setting'
					}
				],
			}
		},
		methods: {
			// 修改个人中心
			getUserInfo(){
				this.$http.post(this.$api).then(res=>{
					console.log(res)
				})
			},
			goToUrl(path){
				this.$tools.navigateTo(path)
			},
			// 退出登录
			goOutLogin(){
				uni.clearStorageSync()
				uni.navigateTo({
					url:'/pages/login/login'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.seting-view{
		width: 690rpx;
		height: 80rpx;
		font-weight: 500;
		font-size: 30rpx;
		color: #ffffff;
		background-color: #2A9C37;
		border-radius: 60rpx;
		margin-top: 150rpx;
	}
	.header-bg-view {
		width: 690rpx;
		height: 290rpx;
		padding: 30rpx;
		overflow: hidden;
		background: #2A9C37;
		border-radius: 0rpx 0rpx 30rpx 30rpx;
	}
</style>
